package com.indexingsystem.boss.entity;

import java.io.Serializable;

public class ResourceType implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String resTypeId;

    private String name;

    private String enName;

    private String resTable;

    private Integer isRetail;

    private String description;

    public String getResTypeId() {
        return resTypeId;
    }

    public void setResTypeId(String resTypeId) {
        this.resTypeId = resTypeId == null ? null : resTypeId.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getEnName() {
        return enName;
    }

    public void setEnName(String enName) {
        this.enName = enName == null ? null : enName.trim();
    }

    public String getResTable() {
        return resTable;
    }

    public void setResTable(String resTable) {
        this.resTable = resTable == null ? null : resTable.trim();
    }

    public Integer getIsRetail() {
        return isRetail;
    }

    public void setIsRetail(Integer isRetail) {
        this.isRetail = isRetail;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }
    
    @Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((enName == null) ? 0 : enName.hashCode());
		result = prime * result + ((isRetail == null) ? 0 : isRetail.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((resTable == null) ? 0 : resTable.hashCode());
		result = prime * result + ((resTypeId == null) ? 0 : resTypeId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ResourceType other = (ResourceType) obj;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (enName == null) {
			if (other.enName != null)
				return false;
		} else if (!enName.equals(other.enName))
			return false;
		if (isRetail == null) {
			if (other.isRetail != null)
				return false;
		} else if (!isRetail.equals(other.isRetail))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (resTable == null) {
			if (other.resTable != null)
				return false;
		} else if (!resTable.equals(other.resTable))
			return false;
		if (resTypeId == null) {
			if (other.resTypeId != null)
				return false;
		} else if (!resTypeId.equals(other.resTypeId))
			return false;
		return true;
	}

	public ResourceType() {
		// TODO Auto-generated constructor stub
	}

	public ResourceType(String resTypeId, String name, String enName, String resTable, Integer isRetail,
			String description) {
		super();
		this.resTypeId = resTypeId;
		this.name = name;
		this.enName = enName;
		this.resTable = resTable;
		this.isRetail = isRetail;
		this.description = description;
	}

	@Override
	public String toString() {
		return "ResourceType [resTypeId=" + resTypeId + ", name=" + name + ", enName=" + enName + ", resTable="
				+ resTable + ", isRetail=" + isRetail + ", description=" + description + "]";
	}
    
    
}